package com.inspur.cmis.base.custmanger.service;

import com.inspur.cmis.base.custmanger.mapper.CmLevelDao;
import com.inspur.cmis.base.cust.model.CustBean;
import com.inspur.cmis.base.custmanger.mapper.CmLevelDao;
import com.inspur.cmis.base.custmanger.model.CmLevelBean;
import com.inspur.common.model.Pagination;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CmLevelService {

    @Autowired
    CmLevelDao cmLevelDao;

    public void getListByPage(Pagination<CmLevelBean> page) {

        cmLevelDao.getListByPage(page);
    }

    public void create(CmLevelBean cmLevelBean) {

        cmLevelDao.createOne(cmLevelBean);
    }
    public CmLevelBean selectById(Integer id){
        CmLevelBean cmLevelBean=cmLevelDao.selectById(id);
        return cmLevelBean;
    }

}
